import static org.junit.Assert.*;

import java.awt.Color;

import game.Game;
import game.GameDriver;
import game.Round;

import org.junit.Before;
import org.junit.Test;

import player.Alien;
import player.Flapper;
import player.Human;
import player.Player;

import town.Store;

public class JanviTest {
    GameDriver driver;
    Game game;
    Round round;

    Player p1;
    Player p2;
    Player p3;
    Player p4;

    Store store;

    @Before
    public void setUp() {
	driver = new GameDriver();
	game = new Game(4, 1, 1);

	p1 = new Player(game, "bob", Color.RED, "red", new Flapper());
	p2 = new Player(game, "sally", Color.CYAN, "cyan", new Human());
	p3 = new Player(game, "dave", Color.GREEN, "green", new Human());
	p4 = new Player(game, "phil", Color.YELLOW, "yellow", new Alien());

	game.setPlayer(p1, 0);
	game.setPlayer(p2, 1);
	game.setPlayer(p3, 2);
	game.setPlayer(p4, 3);

	round = new Round(game, driver);
	store = new Store(game, driver, round);

    }


//    @Test
//    public void testBuyResource() {
//	// Buying 1 Smithore for 50
//	assertFalse(store.buyResourceFromStore(2, 1, 50));
//	// Buying 1 Energy for 25
//	assertTrue(store.buyResourceFromStore(1, 1, 25));
//	// Buying 3 Smithore for 50
//	assertFalse(store.buyResourceFromStore(2, 3, 50));
//	// Buying 4 Foods for 30
//	assertTrue(store.buyResourceFromStore(0, 4, 30));
//	// Buying 1 Crystite for 50
//	assertFalse(store.buyResourceFromStore(3, 1, 50));
//	// Buying 4 Foods for 30
//	assertTrue(store.buyResourceFromStore(0, 4, 30));
//	// Buying 2 Energy for 25
//	assertTrue(store.buyResourceFromStore(1, 2, 25));
//	// Buying 1 Energy for 50
//	assertTrue(store.buyResourceFromStore(1, 1, 50));
//	// Buying 1 Energy for 50
//	assertFalse(store.buyResourceFromStore(1, 1, 50));
//    }

}

